<!DOCTYPE html>
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
	<head>
		<?php $this->load->view($cfg['tpl'].'public/meta')?>
	</head>

	<!-- body classes: 
			"boxed": boxed layout mode e.g. <body class="boxed">
			"pattern-1 ... pattern-9": background patterns for boxed layout mode e.g. <body class="boxed pattern-1"> 
	-->
	<body>
		<!-- scrollToTop -->
		<!-- ================ -->
		<div class="scrollToTop"><i class="icon-up-open-big"></i></div>

		<!-- page wrapper start -->
		<!-- ================ -->
		<div class="page-wrapper">

			<?php $this->load->view($cfg['tpl'].'public/header')?>

			<!-- page-intro start-->
			<!-- ================ -->
			<div class="page-intro">
				<div class="container">
					<div class="row">
						<div class="col-md-12">
							<ol class="breadcrumb">
								<li><a href="<?=site_url('cases')?>">CASE</a></li>
								<li class="active"><?php echo $row['title']?></li>
							</ol>
						</div>
					</div>
				</div>
			</div>
			<!-- page-intro end -->

			<!-- main-container start -->
			<!-- ================ -->
			<section class="main-container">
				<div class="container">
					<div class="row">

						<!-- main start -->
						<!-- ================ -->
						<div class="main col-md-12">

							<!-- page-title start -->
							<!-- ================ -->
							<h1 class="page-title">Case</h1>
							<div class="separator-2"></div>
							<!-- page-title end -->
							
							<!-- isotope filters start -->
							<div class="filters">
								<ul class="nav nav-pills">
									<?php foreach ($case as $k => $v) {?>
									<li <?php if ($articleid == $v['articleid']){?>class="active"<?php }?>><a href="<?=site_url('cases/index/'.$v['articleid'])?>"><?php echo $v['title']?></a></li>
									<?php }?>
								</ul>
							</div>
							<!-- isotope filters end -->
							
							<div class="owl-carousel content-slider-with-controls">
								<?php foreach ($row['attachment'] as $k => $v) {?>
								<div class="overlay-container">
									<img src="<?=base_url($v['attachsourcepath'])?>" alt="">
									<!--<div class="caption">
										<h3 class="title">Caption Title</h3>
										Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laborum optio odio, recusandae qui minima eveniet cumque praesentium expedita sint accusamus itaque.
									</div>-->
									<!--<a href="<?=base_url($v['attachsourcepath'])?>" class="popup-img overlay" title="image title"><i class="fa fa-search-plus"></i></a>-->
								</div>
								<?php }?>
							</div>

							<!--<h3>Project Description</h3>-->
							<?php if (!empty($row['desc'])) {?>
							<div class="separator-2"></div>
							<p><?php echo $row['desc']?></p>
							<?php }?>
							<?php if (!empty($row['content'])) {?>
							<div class="separator-2"></div>
							<p><?php echo $row['content']?></p>
							<?php }?>
						</div>
						<!-- main end -->

					</div>
				</div>
			</section>
			<!-- main-container end -->

			<?php $this->load->view($cfg['tpl'].'public/footer')?>

	</body>
</html>
